package com.zd.service.lmpl;/**
 * @Description: ConsignerServicelmpl
 * @Author:pioneer
 * @Date: 2021-07-12
 * @Version:v1.0
 */

import com.zd.mapper.ConsignerMapper;
import com.zd.service.lnter.ConsignerServicelnter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Description: ConsignerServicelmpl
 * @Author:pioneer
 * @Date: 2021-07-12
 * @Version:v1.0
 */
@Service
public class ConsignerServicelmpl implements ConsignerServicelnter {

    @Autowired
    public ConsignerMapper consignerMapper;
    /**
     * 根据发货人id修改发货人信息
     *
     * @param clientName     发货人姓名
     * @param phone          联系电话
     * @param forwardingUnit 发货单位
     * @param consignerid    发货人主键id
     * @return 返回数值判断是否修改成功
     */
    @Override
    public int updateConsigner(String clientName, String phone, String forwardingUnit, String consignerid) {
        return consignerMapper.updateConsigner (clientName,phone,forwardingUnit,consignerid);
    }
}
